﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace QuickTweet.Common.Services
{
    public static class DialogService
    {
        public static void Confirm(string title, string message, ImageSource image, Action<bool> response)
        {
            MessageBoxResult result = Microsoft.Windows.Controls.MessageBox.Show(message,title, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
            response(result == MessageBoxResult.Yes);
        }

        public static void Alert(string title, string message, ImageSource image)
        {
            MessageBox.Show(message, title, MessageBoxButton.OK, MessageBoxImage.Exclamation);
        }
    }
}
